﻿using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Options;
using static configure_hot_update.Models.WeChatSettings;

namespace configure_hot_update.Controllers
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class DynamicController(IOptionsSnapshot<PaymentConfig> options) : ControllerBase
    {
        private readonly PaymentConfig config = options.Value;

        [HttpGet]
        public IActionResult HotGet()
        {
            return Ok(config.MchId);
        }
    }
}
